<script>
	import {getToken} from './utils/auth.js';
	export default {
		onLaunch: function() {
		    //判断是否登录
				let token = getToken()
				if(!token){
					//不存在则跳转至登录页
					uni.reLaunch({
						url: "/pages/index//index"
					})
				}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
